package cn.iocoder.yudao.module.signature.enums;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * @author liujq
 * @date 20241027 21:51
 * 设备版本类型
 */
@Getter
@AllArgsConstructor
public enum DeviceVersionType implements IntArrayValuable {
    /**
     * 摆烂版
     */
    SLACKING(0, "摆烂版","VT1"),
    /**
     * 躺平版
     */
    LYING_FLAT(1, "躺平版","VT2"),
    /**
     * 标准版
     */
    STANDARD(2, "标准版","VT3"),
    /**
     * 特标准版
     */
    SPECIAL_STANDARD(3, "特标准版","VT4"),
    /**
     * 加强版
     */
    STRENGTHEN(4, "加强版","VT5"),
    /**
     * 稳定版
     */
    STABILITY(5, "稳定版","VT6"),


    ;
    /**
     * 业务分类
     */
    private final Integer type;
    /**
     * 说明
     */
    private final String description;

    private final String code;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(DeviceVersionType::getType).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
